// API callback
av({"version":"1.0","encoding":"UTF-8","entry":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$blogger":"http://schemas.google.com/blogger/2008","xmlns$georss":"http://www.georss.org/georss","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$thr":"http://purl.org/syndication/thread/1.0","id":{"$t":"tag:blogger.com,1999:blog-3716092791552935940.post-5713667990840896627"},"published":{"$t":"2014-11-25T23:25:00.003+07:00"},"updated":{"$t":"2014-11-25T23:55:11.964+07:00"},"category":[{"scheme":"http://www.blogger.com/atom/ns#","term":"Linux"},{"scheme":"http://www.blogger.com/atom/ns#","term":"Tutorial"}],"title":{"type":"text","$t":"[TUTORIAL] Daemon Bahasa C pada Linux"},"content":{"type":"html","$t":"\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003EHai =))\u003C\/span\u003E\u003Cbr \/\u003E\u003Cbr style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\" \/\u003E\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003EKali ini, saya akan menjelaskan tentang daemon dalam linux menggunakan bahasa C.\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003EPreprocessor Directive yang diperlukan adalah\u003C\/span\u003E\u003Cbr \/\u003E\u003Cbr \/\u003E\u003Cblockquote class=\"tr_bq\"\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E#include \u0026lt;unistd.h\u0026gt;\u003Cbr \/\u003E#include \u0026lt;sys\/types.h\u0026gt;\u003Cbr \/\u003E#include \u0026lt;sys\/stat.h\u0026gt;\u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003Eint main(){ \u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; pid_t pid,sid,ppid;\u003Cbr \/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; pid=fork();\u003Cbr \/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; if(pid \u0026gt; 0){\u003Cbr \/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; \u0026nbsp;\u0026nbsp;\u0026nbsp; exit(EXIT_SUCCESS);\u003Cbr \/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; }\u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Ca name='more'\u003E\u003C\/a\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u003Cbr \/\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; umask(0);\u003Cbr \/\u003E\u0026nbsp;\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; \/\/ Place your code here\u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u003Cbr \/\u003E \u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u0026nbsp;\u0026nbsp;\u0026nbsp; return 0;\u003Cbr \/\u003E \u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: \u0026quot;Courier New\u0026quot;,Courier,monospace;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; font-size: 13px; line-height: 18.2000007629395px;\"\u003E}\u003C\/span\u003E\u003C\/span\u003E\u003C\/blockquote\u003E\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-size: x-small;\"\u003EJadi dengan adanya daemon, program (file .c) kita akan terus berjalan pada proses.\u003C\/span\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"background-color: white; color: #292929; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;\"\u003E\u003Cbr \/\u003E\u003C\/span\u003E\u003Cbr \/\u003E\u003Cspan style=\"font-family: inherit;\"\u003E\u003Cspan style=\"font-size: x-small;\"\u003E\u003Cspan style=\"background-color: white; color: #292929; line-height: 18.2px;\"\u003ETerima kasih, semoga bermanfaat..\u003C\/span\u003E\u003Cbr style=\"background-color: white; color: #292929; line-height: 18.2px;\" \/\u003E\u003Cspan style=\"background-color: white; color: #292929; line-height: 18.2px;\"\u003ESampai ketemu pertemuan mendatang =))\u003C\/span\u003E\u003Cbr style=\"background-color: white; color: #292929; line-height: 18.2px;\" \/\u003E\u003Cspan style=\"background-color: white; color: #292929; line-height: 18.2px;\"\u003E#fantasticschematics\u003C\/span\u003E\u003C\/span\u003E\u003C\/span\u003E"},"link":[{"rel":"replies","type":"application/atom+xml","href":"http:\/\/www.fanyagriansyah.co.vu\/feeds\/5713667990840896627\/comments\/default","title":"Post Comments"},{"rel":"replies","type":"text/html","href":"http:\/\/www.fanyagriansyah.co.vu\/2014\/11\/tutorial-daemon-bahasa-c-pada-linux.html#comment-form","title":"0 Comments"},{"rel":"edit","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/3716092791552935940\/posts\/default\/5713667990840896627"},{"rel":"self","type":"application/atom+xml","href":"http:\/\/www.blogger.com\/feeds\/3716092791552935940\/posts\/default\/5713667990840896627"},{"rel":"alternate","type":"text/html","href":"http:\/\/www.fanyagriansyah.co.vu\/2014\/11\/tutorial-daemon-bahasa-c-pada-linux.html","title":"[TUTORIAL] Daemon Bahasa C pada Linux"}],"author":[{"name":{"$t":"Unknown"},"email":{"$t":"noreply@blogger.com"},"gd$image":{"rel":"http://schemas.google.com/g/2005#thumbnail","width":"16","height":"16","src":"https:\/\/img1.blogblog.com\/img\/b16-rounded.gif"}}],"thr$total":{"$t":"0"}}});