diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-25 03:31:26 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-25 03:31:26 +0000 |
commit | 1d4f1c226d170f0108d631f93c4f9d92d9b5f42c (patch) | |
tree | 459ec64ca542175b6f075006e25365b9b2322c95 /usr.bin/cvs/sock.h | |
parent | be169be1824b7a9864243a1100db89997b425636 (diff) |
* when calling cvsd_sock_open(), close the socket if it is already
opened, before reopening it
* remove the cvsd_sock_loop() call, it was a bad idea
Diffstat (limited to 'usr.bin/cvs/sock.h')
-rw-r--r-- | usr.bin/cvs/sock.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/cvs/sock.h b/usr.bin/cvs/sock.h index 6595cec951a..e4eb972810c 100644 --- a/usr.bin/cvs/sock.h +++ b/usr.bin/cvs/sock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.h,v 1.1 2004/07/13 22:02:40 jfb Exp $ */ +/* $OpenBSD: sock.h,v 1.2 2004/07/25 03:31:25 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -48,15 +48,12 @@ extern char *cvsd_sock_path; - -extern volatile sig_atomic_t cvs_sock_doloop; - +extern int cvsd_sock; /* daemon api */ int cvsd_sock_open (void); void cvsd_sock_close (void); -void cvsd_sock_loop (void); -int cvsd_sock_hdl (int); +int cvsd_sock_accept (int); /* client api */ int cvs_sock_connect (const char *); |