contrib/chg/chg.c
changeset 30693 baee0f47b533
parent 30692 23ddd43ba866
child 30741 fde9692a02c0
equal deleted inserted replaced
30692:23ddd43ba866 30693:baee0f47b533
    21 #include <sys/wait.h>
    21 #include <sys/wait.h>
    22 #include <time.h>
    22 #include <time.h>
    23 #include <unistd.h>
    23 #include <unistd.h>
    24 
    24 
    25 #include "hgclient.h"
    25 #include "hgclient.h"
       
    26 #include "procutil.h"
    26 #include "util.h"
    27 #include "util.h"
    27 
    28 
    28 #ifndef PATH_MAX
    29 #ifndef PATH_MAX
    29 #define PATH_MAX 4096
    30 #define PATH_MAX 4096
    30 #endif
    31 #endif
   301 		unlink(resolvedpath);
   302 		unlink(resolvedpath);
   302 		free(resolvedpath);
   303 		free(resolvedpath);
   303 	}
   304 	}
   304 }
   305 }
   305 
   306 
   306 #include "procutil.c"
       
   307 
       
   308 /* Run instructions sent from the server like unlink and set redirect path
   307 /* Run instructions sent from the server like unlink and set redirect path
   309  * Return 1 if reconnect is needed, otherwise 0 */
   308  * Return 1 if reconnect is needed, otherwise 0 */
   310 static int runinstructions(struct cmdserveropts *opts, const char **insts)
   309 static int runinstructions(struct cmdserveropts *opts, const char **insts)
   311 {
   310 {
   312 	int needreconnect = 0;
   311 	int needreconnect = 0;