Closed granitepenguin closed 6 years ago
wht's thelog entries for the session for the one before this that left the semaphore orphaned
ok, got it to reproduce under strace... looks like the other side has the connection closed and we get a SIGPIPE so never clean up.
open("networkb.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 5
lseek(5, 0, SEEK_END) = 38879
flock(5, LOCK_EX) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=38879, ...}) = 0
write(5, "2018-07-28 21:46:33415 VER-1 "..., 58) = 58
close(5) = 0
write(2, "2018-07-28 21:46:33415 VER-1 "..., 57) = 57
write(2, "\n", 1) = 1
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
open("networkb.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 5
lseek(5, 0, SEEK_END) = 38937
flock(5, LOCK_EX) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=38937, ...}) = 0
write(5, "2018-07-28 21:46:33415 VER-1 "..., 74) = 74
close(5) = 0
write(2, "2018-07-28 21:46:33415 VER-1 "..., 73) = 73
write(2, "\n", 1) = 1
sendto(4, "\200S\7Error (NETWORKB-0001): Unexpe"..., 85, 0, NULL, 0) = -1 EPIPE (Broken pipe)
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=31324, si_uid=1002} ---
+++ killed by SIGPIPE +++
OS Linux WWIV 2807
The system is not cleaning up the semaphore file, which is causing runs of network to fail
If I manually delete the semaphore, I can get one run out of it, but that's it.
This happens if I start ./bbs. I only get one run and then it's stuck.