##// END OF EJS Templates
chg: forward user-defined signals...
chg: forward user-defined signals SIGUSR1 and SIGUSR2 are reserved for user-defined behaviors. They may be redefined by an hg extension [1], but cannot be easily redefined for chg. Since the default behavior (kill) is not that useful for chg, let's forward them to hg, hoping it got redefined there and could be more useful. [1] https://bitbucket.org/facebook/hg-experimental/commits/e7c883a465

File last commit:

r30741:fde9692a default
r31230:cc37b5a0 default
Show More
hgclient.h
30 lines | 846 B | text/x-c | CLexer
Yuya Nishihara
chg: import frontend sources...
r28060 /*
* A command server client that uses Unix domain socket
*
* Copyright (c) 2011 Yuya Nishihara <yuya@tcha.org>
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2 or any later version.
*/
#ifndef HGCLIENT_H_
#define HGCLIENT_H_
#include <sys/types.h>
struct hgclient_tag_;
typedef struct hgclient_tag_ hgclient_t;
hgclient_t *hgc_open(const char *sockname);
void hgc_close(hgclient_t *hgc);
Jun Wu
chg: add pgid to hgclient struct...
r29581 pid_t hgc_peerpgid(const hgclient_t *hgc);
Yuya Nishihara
chg: import frontend sources...
r28060 pid_t hgc_peerpid(const hgclient_t *hgc);
Jun Wu
chg: implement validate in hgclient...
r28356 const char **hgc_validate(hgclient_t *hgc, const char *const args[],
size_t argsize);
Yuya Nishihara
chg: import frontend sources...
r28060 int hgc_runcommand(hgclient_t *hgc, const char *const args[], size_t argsize);
void hgc_attachio(hgclient_t *hgc);
void hgc_setenv(hgclient_t *hgc, const char *const envp[]);
#endif /* HGCLIENT_H_ */