Add ringbuffer to start adding sockets

This commit is contained in:
2024-11-15 15:29:03 +03:00
parent e77fddc3b8
commit 54e88cfd92
12 changed files with 518 additions and 55 deletions

View File

@@ -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);