search for: write_pid

Displaying 5 results from an estimated 5 matches for "write_pid".

Did you mean: write_pda
2005 Aug 25
2
Something other than dotlock for uidlist locking?
If I read the code correctly, only dotlocks are supported for locking of dovecot-uidlist. And I don't see any settings in the config file for it. As it turns out, dotlocks are very slow on my system, due to their implementation via hardlinks. Would it be possible to support other locking mechanisms for locking of the uidlist file? -jdb
2009 Feb 18
1
ssh -f & pid
...[-R [bind_address:]port:host:hostport] [-S ctl_path]\n" " [-w local_tun[:remote_tun]] [user@]hostname [command]\n" +" [-z pid_file]\n" ); exit(255); } @@ -197,6 +201,26 @@ void muxclient(const char *); void muxserver_listen(void); +int write_pid_file(char *pid_file) +{ + char buffer[16]; + int len; + int fd = open(pid_file, O_WRONLY | O_EXCL | O_CREAT, 0644); + if (fd == -1) + return -1; + + len = snprintf(buffer, sizeof(buffer), "%d\n", getpid()); + if (write(fd, buffer, len) != len) + { + close(fd); + return -1; + } + + clos...
2005 Oct 21
1
1.0alpha4: mbox-lock asserts and cores
...ot;idx" is not available. ) at mbox-lock.c:439 #6 0x00035060 in dotlock_callback (secs_left=15, stale=1, context=Variable "context" is not available. ) at mbox-lock.c:209 #7 0x0006b03c in dotlock_create (path=0xab448 "/var/mail/j/jnbero", dotlock=0xacfc0, flags=0, write_pid=1) at file-dotlock.c:408 #8 0x0006b208 in file_dotlock_create (set=Variable "set" is not available. ) at file-dotlock.c:482 #9 0x00035194 in mbox_lock_dotlock (ctx=0xffbff4c8, lock_type=2, max_wait_time=1129857019) at mbox-lock.c:257 #10 0x00035534 in mbox_lock_list (ctx=0xffbff4c8,...
1999 Oct 20
3
patch for tinc-0.3
...GNAME: <$PROGNAME>\n"; openlog($PROGNAME, 'cons, pid, nowait', 'daemon'); # priority, message strings #print "write_syslog(syslog): pri: <$pri> message: <$message>\n"; syslog($pri, $message); # close the log closelog(); } sub write_pid { local($file, $pid) = @_; open(LOCK, ">$file"); print LOCK "$pid\n"; close(LOCK); } sub rm_lock { local($file, $pid) = @_; unlink($file); } sub check_pid { local($file, $pid) = @_; if (-e $file) { #uhoh file exists... open(LOCK, "<...
2015 Dec 23
2
2.2.21 imap core dump after enabling autoexpunge
Hi, I've enabled autoexpunge for Trash and Junk. Now imap process core dumps occasionally. Tomppa > program terminated by signal SEGV (no mapping at the fault address) > 0xff0dc2e0: o_stream_get_buffer_used_size : ld [%o0 + 20], %o0 > Current function is notify_ok (optimized) > 13 if (o_stream_get_buffer_used_size(client->output) != 0) >