summaryrefslogtreecommitdiff
path: root/libguile/async.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-01-12 21:36:39 +0100
committerAndy Wingo <wingo@pobox.com>2009-01-12 21:36:39 +0100
commitc32929d14d40f9e00c3fd10d3f51d54733ebf687 (patch)
treec803163a177580b5a8506052a18664a48504ba00 /libguile/async.c
parentc41350777d6faf05f80627f97ca01cd5c8fac47b (diff)
parentdc686d7b0a1490e26482e018489dec040b79b952 (diff)
downloadguile-c32929d14d40f9e00c3fd10d3f51d54733ebf687.tar.gz
Merge commit 'origin/master' into vm
Conflicts: .gitignore guile-tools.in srfi/srfi-19.scm
Diffstat (limited to 'libguile/async.c')
-rw-r--r--libguile/async.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libguile/async.c b/libguile/async.c
index 87d330d60..bf03c48bd 100644
--- a/libguile/async.c
+++ b/libguile/async.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -41,6 +41,8 @@
#include <unistd.h>
#endif
+#include <full-write.h>
+
/* {Asynchronous Events}
*
@@ -241,13 +243,13 @@ scm_i_queue_async_cell (SCM c, scm_i_thread *t)
if (sleep_fd >= 0)
{
char dummy = 0;
+
/* Likewise, T might already been done with sleeping here, but
interrupting it once too often does no harm. T might also
not yet have started sleeping, but this is no problem either
since the data written to a pipe will not be lost, unlike a
- condition variable signal.
- */
- write (sleep_fd, &dummy, 1);
+ condition variable signal. */
+ full_write (sleep_fd, &dummy, 1);
}
/* This is needed to protect sleep_mutex.