mheily / jobd

A job management framework
Other
143 stars 15 forks source link

need to close jobd.sock prior to exec() #72

Open mheily opened 8 years ago

mheily commented 8 years ago

saw a leak of the IPC socket, this is bad.

  PID COMM                FD T V FLAGS    REF  OFFSET PRO NAME        
58888 captest           text v r r-------   -       - -   /usr/home/mark/proj/jobd/test/capsicum/captest
58888 captest            cwd v d r-------   -       - -   /usr/home/mark/proj/jobd/test/capsicum
58888 captest           root v d r-------   -       - -   /                 
58888 captest              0 v c r-------   1       0 -   /dev/null         
58888 captest              1 v r -w------   1     126 -   /usr/home/mark/proj/jobd/test/capsicum/captest.out
58888 captest              2 v r -w------   1       0 -   /usr/home/mark/proj/jobd/test/capsicum/captest.err
58888 captest              3 v r -w------  18    1934 -   -                 
58888 captest              5 s - rw------   1       0 TCP 0.0.0.0:0 0.0.0.0:0
58888 captest              6 v r --------   1       0 -   /usr/home/mark/proj/jobd/test/capsicum/captest
58888 captest             10 s - rw------   1       0 UDS /usr/home/mark/.jobd/run/jobd.sock
mheily commented 8 years ago

reopening, there was a typo in my commit message :(