HomeSort by relevance Sort by last modified time
    Searched defs:pidfile (Results 1 - 9 of 9) sorted by null

  /external/chromium/net/tools/flip_server/
flip_in_mem_edsm_server.cc 115 static int OpenPidFile(const char *pidfile)
121 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
123 cerr << "Could not open pid file '" << pidfile << "' for reading.\n"; local
138 cerr << "Could not stat pid file '" << pidfile << "': " << strerror(errno)
143 cerr << "Could not truncate pid file '" << pidfile << "': "
207 cout << "\t--pidfile=<filepath> (default /var/run/flip-server.pid)\n";
212 if (cl.HasSwitch("pidfile")) {
213 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str());
215 pidfile_fd = OpenPidFile(PIDFILE);
409 unlink(PIDFILE);
    [all...]
  /external/dropbear/
runopts.h 87 char * pidfile; member in struct:svr_runopts
svr-main.c 120 FILE *pidfile = NULL; local
154 pidfile = fopen(svr_opts.pidfile, "w");
155 if (pidfile) {
156 fprintf(pidfile, "%d\n", getpid());
157 fclose(pidfile);
197 unlink(svr_opts.pidfile);
  /external/bluetooth/bluez/compat/
pand.c 81 static char *pidfile = NULL; variable
509 fd = open(pidfile, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0644);
512 fd = open(pidfile, O_RDONLY);
514 syslog(LOG_ERR, "Could not read old pidfile: %s(%d)",
527 syslog(LOG_ERR, "Could not fdopen old pidfile: %s(%d)",
542 syslog(LOG_INFO, "Removing stale pidfile");
543 unlink(pidfile);
549 pidfile = NULL;
558 syslog(LOG_ERR, "Could not fdopen new pidfile: %s(%d)",
561 unlink(pidfile);
    [all...]
  /external/dbus/bus/
bus.c 52 char *pidfile; member in struct:BusContext
291 const char *user, *pidfile; local
310 pidfile = bus_config_parser_get_pidfile (parser);
311 if (pidfile != NULL)
316 _dbus_string_init_const (&u, pidfile);
338 pidfile);
347 context->pidfile = _dbus_strdup (pidfile);
833 if (context->pidfile)
834 _dbus_string_init_const (&u, context->pidfile);
    [all...]
config-parser.c 108 char *pidfile; /**< PID file */ member in struct:BusConfigParser
319 if (included->pidfile != NULL)
321 dbus_free (parser->pidfile);
322 parser->pidfile = included->pidfile;
323 included->pidfile = NULL;
491 dbus_free (parser->pidfile);
752 if (!check_no_attributes (parser, "pidfile", attribute_names, attribute_values, error))
    [all...]
  /external/dnsmasq/src/
dnsmasq.c 336 /* write pidfile _after_ forking ! */
339 FILE *pidfile; local
342 if ((pidfile = fopen(daemon->runfile, "w")))
344 fprintf(pidfile, "%d\n", (int) getpid());
345 fclose(pidfile);
790 die(_("failed to open pidfile %s: %s"), daemon->runfile, EC_FILE);
    [all...]
  /external/dhcpcd/
dhcpcd.c 104 static char *pidfile; variable
143 if ((fp = fopen(pidfile, "r")) == NULL) {
198 unlink(pidfile);
201 free(pidfile);
    [all...]
  /external/ppp/pppd/
main.c 855 FILE *pidfile; local
859 if ((pidfile = fopen(pidfilename, "w")) != NULL) {
860 fprintf(pidfile, "%d\n", pid);
861 (void) fclose(pidfile);
874 FILE *pidfile; local
881 if ((pidfile = fopen(linkpidfile, "w")) != NULL) {
882 fprintf(pidfile, "%d\n", pid);
884 fprintf(pidfile, "%s\n", ifname);
885 (void) fclose(pidfile);
    [all...]

Completed in 431 milliseconds