You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/03/14 01:46:32 UTC

cvs commit: apache-2.0/src/lib/apr/file_io/unix pipe.c

rbb         00/03/13 16:46:32

  Modified:    src/lib/apr/file_io/unix pipe.c
  Log:
  Make people tell APR where to put the named pipe.  Also fixed the docs for
  named pipes.
  
  Revision  Changes    Path
  1.14      +5 -7      apache-2.0/src/lib/apr/file_io/unix/pipe.c
  
  Index: pipe.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/pipe.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- pipe.c	2000/03/10 00:05:59	1.13
  +++ pipe.c	2000/03/14 00:46:32	1.14
  @@ -135,18 +135,16 @@
    * ap_status_t ap_create_namedpipe(ap_context_t *, char *, ap_fileperms_t, 
    *                                 char **)
    *    Create a named pipe.
  - * arg 1) The context to operate on.
  - * arg 2) The directory to create the pipe in.
  - * arg 3) The permissions for the newly created pipe.
  - * arg 4) The name of the new pipe. 
  + * arg 1) The filename of the named pipe
  + * arg 2) The permissions for the newly created pipe.
  + * arg 3) The context to operate on.
    */
  -ap_status_t ap_create_namedpipe(char **new, char *dirpath, 
  +ap_status_t ap_create_namedpipe(char *filename, 
                                   ap_fileperms_t perm, ap_context_t *cont)
   {
       mode_t mode = get_fileperms(perm);
   
  -    *new = tempnam(dirpath, NULL);
  -    if (mkfifo((*new), mode) == -1) {
  +    if (mkfifo(filename, mode) == -1) {
           return errno;
       }
       return APR_SUCCESS;