~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to tests/child-test.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
char *argv0;
52
52
#endif
53
53
 
54
 
GPid
 
54
static GPid
55
55
get_a_child (gint ttl)
56
56
{
57
57
  GPid pid;
89
89
#endif /* G_OS_WIN32 */
90
90
}
91
91
 
92
 
gboolean
 
92
static gboolean
93
93
child_watch_callback (GPid pid, gint status, gpointer data)
94
94
{
95
95
#ifdef VERBOSE
176
176
#endif
177
177
 
178
178
  alive = 2;
179
 
  g_timeout_add (30000, quit_loop, main_loop);
 
179
  g_timeout_add_seconds (30, quit_loop, main_loop);
180
180
 
181
181
#ifdef TEST_THREAD
182
182
  g_thread_create (test_thread, GINT_TO_POINTER (10), FALSE, NULL);