@@ -0,0 +1,696 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A# Copyright (c) 2013 J%C3%A9r%C3%A9mie DECOCK (http://www.jdhp.org)%0A%0A# This snippet requires a Posix compliant operating system (eg. it doesn't%0A# works on Ms Windows).%0A%0Aimport os%0Aimport sys%0A%0Adef main():%0A    %22%22%22Main function%22%22%22%0A%0A    pid = os.fork()%0A    if pid == -1:%0A        print %3E%3E sys.stderr, %22Fork error%22%0A        sys.exit(1)%0A%0A    if pid == 0:%0A        # child process%0A        print %22Hello from the child process (%7B0%7D)%22.format(os.getpid())%0A    else:%0A        # parent process%0A        print %22Hello form the parent process (%7B0%7D)%22.format(os.getpid())%0A        os.wait()   # the parent process waits for the end of its child%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add a snippet (python/unix/fork.py).