{"type":"rich","blog_title":"atsuoishimoto's diary","blog_url":"https://atsuoishimoto.hatenablog.com/","categories":["Python","APUE"],"author_name":"atsuoishimoto","published":"2011-03-24 11:30:05","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsuoishimoto.hatenablog.com%2Fentry%2F20110324%2F1300933805\" title=\"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e8) \u7b2c8\u7ae0 \u30d7\u30ed\u30bb\u30b9\u5236\u5fa1 - atsuoishimoto&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://atsuoishimoto.hatenablog.com/entry/20110324/1300933805","version":"1.0","image_url":null,"width":"100%","title":"Python\u3067\u5b66\u3076\u300c\u8a73\u89e3 UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300d(\u305d\u306e8) \u7b2c8\u7ae0 \u30d7\u30ed\u30bb\u30b9\u5236\u5fa1","author_url":"https://blog.hatena.ne.jp/atsuoishimoto/","height":"190","description":"8.1 fork\u95a2\u6570\u306e\u4f8b import sys, os, time glob = 6 buf = \"a write to stdout\\n\" STDOUT_FILENO = sys.stdout.fileno() def main(): global glob var = 88 # automatic variable on the stack os.write(STDOUT_FILENO, buf) # we don't flush stdout print \"before fork\" pid = os.fork() if pid == 0: # child glob += 1 # modi\u2026","provider_url":"https://hatena.blog"}