{"comment":{"url":"https://api.github.com/repos/ceph/ceph/comments/10957112","html_url":"https://github.com/ceph/ceph/commit/e792070847be515b06ab5279e0a58ea57e74611e#commitcomment-10957112","id":10957112,"user":{"login":"dzafman","id":2467610,"avatar_url":"https://avatars.githubusercontent.com/u/2467610?v=3","gravatar_id":"","url":"https://api.github.com/users/dzafman","html_url":"https://github.com/dzafman","followers_url":"https://api.github.com/users/dzafman/followers","following_url":"https://api.github.com/users/dzafman/following{/other_user}","gists_url":"https://api.github.com/users/dzafman/gists{/gist_id}","starred_url":"https://api.github.com/users/dzafman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzafman/subscriptions","organizations_url":"https://api.github.com/users/dzafman/orgs","repos_url":"https://api.github.com/users/dzafman/repos","events_url":"https://api.github.com/users/dzafman/events{/privacy}","received_events_url":"https://api.github.com/users/dzafman/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"e792070847be515b06ab5279e0a58ea57e74611e","created_at":"2015-04-29T06:38:06Z","updated_at":"2015-04-29T06:38:06Z","body":"Something like:\r\n\r\nint ret = system(\"fusemount...\")\r\nif (ret == -1) {\r\n   cerr << \"fork failed\";\r\n} else {\r\n  if (WIFEXITED(ret)) {\r\n    if (WIFEXITSTATUS(ret) > 0)\r\n      cerr << \"fusemount failed\";\r\n  } else {\r\n    // It must be WIFSIGNALED()\r\n    cerr << \"fusemount got signal \" << WTERMSIG(ret);\r\n  }\r\n}"}}