Skip to content

Commit 54a6d21

Browse files
author
TwolDE
committed
[myconsole] remove fd0lock hack
1 parent 1d2dbee commit 54a6d21

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/serviceapp/myconsole.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,6 @@ int eConsoleContainer::execute(eMainloop *context, const char *cmdline, const ch
107107
eDebug("[ServiceApp][eConsoleContainer] Starting %s", cmdline);
108108
pid=-1;
109109
killstate=0;
110-
int tmp_fd = -1;
111-
tmp_fd = ::open("/dev/console", O_RDONLY | O_CLOEXEC);
112-
eDebug("[ServiceApp][eConsoleContainer] Opened tmp_fd: %d", tmp_fd);
113-
if (tmp_fd == 0)
114-
{
115-
::close(tmp_fd);
116-
tmp_fd = -1;
117-
fd0lock = ::open("/dev/console", O_RDONLY | O_CLOEXEC);
118-
eDebug("[ServiceApp][eConsoleContainer] opening null fd returned: %d", fd0lock);
119-
}
120-
if (tmp_fd != -1)
121-
{
122-
::close(tmp_fd);
123-
}
124110
/* get one read, one write and the err pipe to the prog.. */
125111
pid = bidirpipe(fd, cmdline, argv, m_cwd.empty() ? 0 : m_cwd.c_str());
126112

src/serviceapp/myconsole.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#include <queue>
88
#include <vector>
99

10-
extern int fd0lock;
11-
1210
struct queue_data
1311
{
1412
queue_data( char *data, int len )

0 commit comments

Comments
 (0)