summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/Ecore.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-08-13 02:53:48 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-08-13 02:53:48 +0000
commitb3c7aa388b14c66b50be12064776b3eda5bd0a58 (patch)
treecda7518d0d734554fd28c048d21942bd5193b7e0 /legacy/ecore/src/lib/ecore/Ecore.h
parenta9b622c534cbde8b97101d7abd0de93ddb1d5943 (diff)
docs + @since for ecore_fork()
SVN revision: 75182
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/Ecore.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore/Ecore.h b/legacy/ecore/src/lib/ecore/Ecore.h
index 859479fd9a..7f2d043a29 100644
--- a/legacy/ecore/src/lib/ecore/Ecore.h
+++ b/legacy/ecore/src/lib/ecore/Ecore.h
@@ -380,6 +380,23 @@ extern "C" {
380 380
381EAPI int ecore_init(void); 381EAPI int ecore_init(void);
382EAPI int ecore_shutdown(void); 382EAPI int ecore_shutdown(void);
383/**
384 * Reset the ecore internal state after a fork
385 *
386 * Ecore maintains internal data that can be affected by the fork() system call
387 * which creates a duplicate of the current process. This also duplicates
388 * file descriptors which is problematic in that these file descriptors still
389 * point to their original sources. This function makes ecore reset internal
390 * state (e.g. pipes used for signalling between threads) so they function
391 * correctly afterwards.
392 *
393 * It is highly suggested that you call this function after any fork()
394 * system call inside the child process if you intend to use ecore features
395 * after this point and not call any exec() family functions. Not doing so
396 * will cause possible misbehaviour.
397 *
398 * @since 1.7
399 */
383EAPI void ecore_fork_reset(void); 400EAPI void ecore_fork_reset(void);
384 401
385/** 402/**