<div dir="ltr">Hi,<div><br></div><div>I recently had a problem come up with my D1 app.  I have the app writing the PID to the database at start and stop of a particular route, and I have two runs that never completed.</div>
<div><br></div><div>I did an strace on the worker and it looked like this:</div><div><br></div><div><div>[root@host ~]# strace -p 26508</div><div>Process 26508 attached - interrupt to quit</div><div>flock(10, LOCK_EX </div>
</div><div><br></div><div>lsof on that process gave me</div><div><br></div><div>starman   26508      apps   10wW     REG               8,22         0         24 /tmp/3j6mXZXwWM (deleted)<br>
</div><div><br></div><div>(not sure, but I think the 10 in the flock call and the 10 in the 10wW mean that we're talking about the same file?).</div><div><br></div><div>After a little more digging I found that every starman worker had that file open (except with 10w instead of 10wW for all but the one above and stracing a few of the other workers showed the same output ( "flock(10, LOCK_EX" ) as above.</div>
<div><br></div><div>I started it up from a script with</div><div><br></div><div>qx{ plackup --server Starman --port $port --workers 50 --env $env --pid=$run_file --daemonize bin/<a href="http://app.pl">app.pl</a>  --error-log logs/$env.log }<br>
</div><div><br></div><div>Anyone have any idea what that file would be, and whether this is indicative of any problem?  Normally I expect to see a "listen(..." call when I do an strace, which I think means the worker is waiting for a connection.  This looks to me like it's trying to get a lock on a file to write to it, but I don't know what that file would be, etc.</div>
<div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>mike</div><div> </div></div>