You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Claude
6cdca3c075
watchDogDaemon: line buffer, end on client EOF, handler cleanup; la_mojo sends getpid()
watchDogDaemon (kernel.cpp)
- Client lines are assembled in a buffer. readLine() on the non-blocking
socket dropped the bytes of a line that had only partly arrived.
- EOF (client closed or crashed without "-1") ends the monitoring of that
client. Before, EOF read as "no data", and after the deadline kill(9) went
to a PID that may belong to another process by then.
- The handler record is zeroed. "finished" was uninitialized (malloc), so
the accept loop could pthread_join() a live handler and block.
- Finished handlers are joined, freed and erased correctly. erase()
inside the for loop skipped the next one, and the records were never
freed. A record whose thread could not be created is freed.
pthread_create() returns an error number, not -1.
- The bind() result is checked.
- The log says which PID is watched or stopped, and for a stall how long
ago the last update was ("WD update STALLED! (PID n, last update N ms
ago)").
kernelPrototype
- Sends getpid() as the PID to kill (was gettid(): the same value only in
the main thread).
Tested with the rebuilt daemon: the kernel scenarios as before (normal,
6 s step: not killed; hang: killed). A client that closes without "-1":
its process isn't killed later. An update split into 3 pieces, 6 times
with a 4 s deadline: understood, not killed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16
9 hours ago
..
dos
initial commit
8 years ago
linux
initial commit
8 years ago
qnxrtp
initial commit
8 years ago
skeleton
initial commit
8 years ago
unix
initial commit
8 years ago
win32
initial commit
8 years ago
wingr
initial commit
8 years ago
winnt
initial commit
8 years ago
x11
initial commit
8 years ago
app.h
initial commit
8 years ago
applictn.h
initial commit
8 years ago
backgrnd.h
initial commit
8 years ago
button.h
initial commit
8 years ago
calc.h
initial commit
8 years ago
chdirdlg.h
initial commit
8 years ago
checkbox.h
initial commit
8 years ago
clrdisp.h
initial commit
8 years ago
clrdlg.h
initial commit
8 years ago
clrgroup.h
initial commit
8 years ago
clrgrpli.h
initial commit
8 years ago
clritem.h
initial commit
8 years ago
clriteml.h
initial commit
8 years ago
clrselct.h
initial commit
8 years ago
cluster.h
initial commit
8 years ago
cmdset.h
initial commit
8 years ago
codepage.h
initial commit
8 years ago
collectn.h
initial commit
8 years ago
colorsel.h
initial commit
8 years ago
configfile.h
initial commit
8 years ago
configtv.h
initial commit
8 years ago
desktop.h
initial commit
8 years ago
dialog.h
initial commit
8 years ago
dialogs.h
initial commit
8 years ago
dircoll.h
initial commit
8 years ago
direntr.h
initial commit
8 years ago
dirlibo.h
initial commit
8 years ago
drawbuf.h
initial commit
8 years ago
drivers.h
initial commit
8 years ago
editors.h
initial commit
8 years ago
event.h
initial commit
8 years ago
eventqu.h
initial commit
8 years ago
filecoll.h
initial commit
8 years ago
filedlg.h
initial commit
8 years ago
filelist.h
initial commit
8 years ago
fileview.h
initial commit
8 years ago
filinfpn.h
initial commit
8 years ago
filinpln.h
initial commit
8 years ago
findrepl.h
initial commit
8 years ago
fontcoll.h
initial commit
8 years ago
fpbase.h
initial commit
8 years ago
fpstream.h
initial commit
8 years ago
frame.h
initial commit
8 years ago
gkey.h
initial commit
8 years ago
group.h
initial commit
8 years ago
help.h
initial commit
8 years ago
helpbase.h
initial commit
8 years ago
history.h
initial commit
8 years ago
histvwer.h
initial commit
8 years ago
histwind.h
initial commit
8 years ago
ifpstrm.h
initial commit
8 years ago
indicato.h
initial commit
8 years ago
inputln.h
initial commit
8 years ago
intl.h
initial commit
8 years ago
iopstrm.h
initial commit
8 years ago
ipstream.h
initial commit
8 years ago
label.h
initial commit
8 years ago
listbox.h
initial commit
8 years ago
lstviewr.h
initial commit
8 years ago
menu.h
initial commit
8 years ago
menubar.h
initial commit
8 years ago
menubox.h
initial commit
8 years ago
menuitem.h
initial commit
8 years ago
menus.h
initial commit
8 years ago
menuview.h
initial commit
8 years ago
mnoselct.h
initial commit
8 years ago
msgbox.h
initial commit
8 years ago
no_mss.h
initial commit
8 years ago
nointl.h
initial commit
8 years ago
nscoll.h
initial commit
8 years ago
nssorcol.h
initial commit
8 years ago
object.h
initial commit
8 years ago
objects.h
initial commit
8 years ago
ofpstrm.h
initial commit
8 years ago
opstream.h
initial commit
8 years ago
osclipboard.h
initial commit
8 years ago
otstream.h
initial commit
8 years ago
palette.h
initial commit
8 years ago
parmtext.h
initial commit
8 years ago
parttree.h
initial commit
8 years ago
point.h
initial commit
8 years ago
preadobj.h
initial commit
8 years ago
program.h
initial commit
8 years ago
pstream.h
initial commit
8 years ago
pwritobj.h
initial commit
8 years ago
radiobtn.h
initial commit
8 years ago
rect.h
initial commit
8 years ago
rescoll.h
initial commit
8 years ago
resfile.h
initial commit
8 years ago
resitem.h
initial commit
8 years ago
resource.h
initial commit
8 years ago
screen.h
initial commit
8 years ago
scrlbar.h
initial commit
8 years ago
scroller.h
initial commit
8 years ago
searchrc.h
initial commit
8 years ago
sitem.h
initial commit
8 years ago
sortcoll.h
initial commit
8 years ago
sortlibo.h
initial commit
8 years ago
ssc_streams.h
initial commit
8 years ago
statsdef.h
initial commit
8 years ago
statsitm.h
initial commit
8 years ago
statslin.h
initial commit
8 years ago
stddlg.h
initial commit
8 years ago
streambl.h
initial commit
8 years ago
strilist.h
initial commit
8 years ago
strinrec.h
initial commit
8 years ago
strlistm.h
initial commit
8 years ago
strmblcl.h
initial commit
8 years ago
strmblty.h
initial commit
8 years ago
strncoll.h
initial commit
8 years ago
sttctext.h
initial commit
8 years ago
submenu.h
initial commit
8 years ago
system.h
initial commit
8 years ago
terminal.h
initial commit
8 years ago
textdev.h
initial commit
8 years ago
textview.h
initial commit
8 years ago
tkeyext.h
initial commit
8 years ago
tkeys.h
initial commit
8 years ago
tobjstrm.h
initial commit
8 years ago
ttypes.h
initial commit
8 years ago
tvconfig.h
initial commit
8 years ago
tvedit.h
initial commit
8 years ago
tvobjs.h
initial commit
8 years ago
tvutil.h
initial commit
8 years ago
validate.h
initial commit
8 years ago
video.h
initial commit
8 years ago
view.h
initial commit
8 years ago
views.h
initial commit
8 years ago
window.h
initial commit
8 years ago
yes_mss.h
initial commit
8 years ago