~ubuntu-branches/ubuntu/trusty/kstart/trusty-proposed

« back to all changes in this revision

Viewing changes to command.h

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-04-23 14:25:55 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080423142555-5vrmy64hjq4w54wh
Tags: 3.12-1
* New upstream release.
  - krenew now copies the ticket cache when running a command.
  - Fix command-line parsing problems in k4start and k5start.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* command.h -- Shared command execution for k4start and k5start. */
2
 
/* $Id: command.h 3009 2007-03-04 04:42:26Z rra $ */
3
 
 
4
 
#ifndef COMMAND_H
5
 
#define COMMAND_H 1
6
 
 
7
 
#include <sys/types.h>          /* pid_t */
8
 
 
9
 
/* Run the given aklog command.  If verbose is true, print some more output to
10
 
   standard output about the exit status. */
11
 
void run_aklog(const char *aklog, int verbose);
12
 
 
13
 
/* Start a command, executing the given command with the given argument vector
14
 
   (which includes argv[0]).  Returns the PID or -1 on error.  This function
15
 
   should not be called again without an intervening finish_command or the
16
 
   signal handling won't work properly. */
17
 
pid_t start_command(const char *command, char **argv);
18
 
 
19
 
/* Check to see if the given command has finished.  If so, return 1 and set
20
 
   status to its exit status.  If it hasn't, return 0.  Return -1 on an
21
 
   error. */
22
 
int finish_command(pid_t child, int *status);
23
 
 
24
 
#endif /* COMMAND_H */
25