mirror of
https://github.com/eddyem/snippets_library.git
synced 2026-03-20 00:30:56 +03:00
Add ringbuffer to start adding sockets
This commit is contained in:
2
daemon.c
2
daemon.c
@@ -66,7 +66,6 @@ char *sl_getPSname(pid_t pid){
|
||||
* Redefine this function for user action
|
||||
*/
|
||||
void WEAK sl_iffound_deflt(pid_t pid){
|
||||
/// \nïÂÎÁÒÕÖÅÎ ÏÄÎÏÉÍÅÎÎÙÊ ÐÒÏÃÅÓÓ (pid=%d), ×ÙÈÏÄ.\n
|
||||
fprintf(stderr, _("\nFound running process (pid=%d), exit.\n"), pid);
|
||||
exit(-1);
|
||||
}
|
||||
@@ -139,7 +138,6 @@ void sl_check4running(char *selfname, char *pidfilename){
|
||||
free(myname);
|
||||
if(pidfilename){
|
||||
pidfile = fopen(pidfilename, "w");
|
||||
/// îÅ ÍÏÇÕ ÏÔËÒÙÔØ PID ÆÁÊÌ
|
||||
if(!pidfile) ERR(_("Can't open PID file"));
|
||||
fprintf(pidfile, "%d\n", self); // write self PID to pidfile
|
||||
fclose(pidfile);
|
||||
|
||||
Reference in New Issue
Block a user