Click here to Skip to main content
14,642,771 members
Home » Discussions » Linux Programming
   

Linux Programming

 
GeneralRe: Bad UDP length 736 > IP payload length Len = 728 packet drop Pin
Randor 28-Apr-19 12:50
professional Randor 28-Apr-19 12:50 
GeneralRe: Bad UDP length 736 > IP payload length Len = 728 packet drop Pin
sarali10-May-19 2:55
Membersarali10-May-19 2:55 
PraiseRe: Bad UDP length 736 > IP payload length Len = 728 packet drop Pin
Randor 10-May-19 11:18
professional Randor 10-May-19 11:18 
QuestionActive PID Pin
Mohibur Rashid4-Apr-19 15:05
professionalMohibur Rashid4-Apr-19 15:05 
AnswerRe: Active PID Pin
Randor 4-Apr-19 15:57
professional Randor 4-Apr-19 15:57 
GeneralRe: Active PID Pin
Mohibur Rashid4-Apr-19 16:12
professionalMohibur Rashid4-Apr-19 16:12 
GeneralRe: Active PID Pin
Randor 4-Apr-19 16:23
professional Randor 4-Apr-19 16:23 
AnswerRe: Active PID Pin
k50544-Apr-19 16:29
mvek50544-Apr-19 16:29 
As you note, the process could abort without removing the pid file. The man page for ps suggests finding the process name by ps -q <pid> -o comm=. You can then compare the two names, and kill when needed.

Another option would be to use fuser and see if the returned pid, if any, matches that of the pid file.

If you have source code to both the worker process and the controller app, then you could place a lock on the pid file in the worker, and check the lock status in the controller. If no lock has been placed on the pid file, then the worker has died without removing the pid file.
GeneralRe: Active PID Pin
Mohibur Rashid4-Apr-19 18:17
professionalMohibur Rashid4-Apr-19 18:17 
QuestionUsing "R CMD INSTALL ..." to install package Pin
Vaclav_1-Apr-19 14:41
MemberVaclav_1-Apr-19 14:41 
RantRe: Using "R CMD INSTALL ..." to install package Pin
k50542-Apr-19 4:50
mvek50542-Apr-19 4:50 
GeneralRe: Using "R CMD INSTALL ..." to install package Pin
Richard MacCutchan3-Apr-19 8:24
mveRichard MacCutchan3-Apr-19 8:24 
GeneralRe: Using "R CMD INSTALL ..." to install package Pin
k50543-Apr-19 10:51
mvek50543-Apr-19 10:51 
Questioncommand "/../" Pin
Vaclav_1-Apr-19 7:35
MemberVaclav_1-Apr-19 7:35 
AnswerRe: command "/../" Pin
k50541-Apr-19 9:17
mvek50541-Apr-19 9:17 
AnswerRe: command "/../" Pin
Eddy Vluggen1-Apr-19 9:35
professionalEddy Vluggen1-Apr-19 9:35 
GeneralRe: command "/../" Pin
Vaclav_1-Apr-19 14:32
MemberVaclav_1-Apr-19 14:32 
GeneralRe: command "/../" Pin
k50541-Apr-19 17:39
mvek50541-Apr-19 17:39 
GeneralRe: command "/../" Pin
Eddy Vluggen2-Apr-19 1:49
professionalEddy Vluggen2-Apr-19 1:49 
AnswerRe: command "/../" Pin
Richard MacCutchan1-Apr-19 21:24
mveRichard MacCutchan1-Apr-19 21:24 
GeneralRe: command "/../" Pin
Vaclav_2-Apr-19 3:26
MemberVaclav_2-Apr-19 3:26 
QuestionWhy lscpu returns BOTH 32 -bit , 64-bit ? Pin
Vaclav_1-Apr-19 5:47
MemberVaclav_1-Apr-19 5:47 
AnswerRe: Why lscpu returns BOTH 32 -bit , 64-bit ? Pin
Richard MacCutchan1-Apr-19 5:52
mveRichard MacCutchan1-Apr-19 5:52 
GeneralRe: Why lscpu returns BOTH 32 -bit , 64-bit ? Pin
Vaclav_1-Apr-19 6:42
MemberVaclav_1-Apr-19 6:42 
QuestionHow to "include / link " to libbluetooth-dev (package?) ? Pin
Vaclav_1-Apr-19 5:33
MemberVaclav_1-Apr-19 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.