in startProcess use _exit instead of exit after fork in child; test command with...
[libasyncio] / utils / asyncio_system_tools.cpp
index e505473..54bfd0e 100644 (file)
@@ -79,6 +79,7 @@ void FileStat::refresh()
     m_is_fifo= S_ISFIFO(file_stat->st_mode);
     m_is_symbolic_link= S_ISLNK(file_stat->st_mode);
     m_is_socket= S_ISSOCK(file_stat->st_mode);
+    m_is_exec_file = m_is_regular_file && (file_stat->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH));
     // TODO: implement more!
 } // end of FileStat::refresh()