Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
e136c11b
Commit
e136c11b
authored
Apr 08, 2015
by
pepi
Browse files
Removed compile time ssize_t warnings
parent
81e4e089
Changes
1
Show whitespace changes
Inline
Side-by-side
servatrice/src/server_logger.cpp
View file @
e136c11b
...
...
@@ -122,23 +122,27 @@ void ServerLogger::flushBuffer()
void
ServerLogger
::
hupSignalHandler
(
int
/*unused*/
)
{
#ifdef Q_OS_UNIX
ssize_t
writeValue
=
NULL
;
if
(
!
logFile
)
return
;
char
a
=
1
;
::
write
(
sigHupFD
[
0
],
&
a
,
sizeof
(
a
));
writeValue
=
::
write
(
sigHupFD
[
0
],
&
a
,
sizeof
(
a
));
#endif
}
void
ServerLogger
::
handleSigHup
()
{
#ifdef Q_OS_UNIX
ssize_t
readValue
=
NULL
;
if
(
!
logFile
)
return
;
snHup
->
setEnabled
(
false
);
char
tmp
;
::
read
(
sigHupFD
[
1
],
&
tmp
,
sizeof
(
tmp
));
readValue
=
::
read
(
sigHupFD
[
1
],
&
tmp
,
sizeof
(
tmp
));
logFile
->
close
();
logFile
->
open
(
QIODevice
::
Append
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment