small x11mon cleanup
This commit is contained in:
+23
-20
@@ -38,19 +38,10 @@ AM_CPPFLAGS = -Wall -Wno-unused -std=c++11 \
|
||||
$(DEFS)
|
||||
|
||||
noinst_PROGRAMS = textsplit utf8iter fstreewalk rclconfig hldata unac mbox \
|
||||
circache wipedir mimetype pathut fileudi
|
||||
circache wipedir mimetype pathut fileudi x11mon
|
||||
|
||||
textsplit_SOURCES = trtextsplit.cpp
|
||||
textsplit_LDADD = ../librecoll.la
|
||||
|
||||
pathut_SOURCES = trpathut.cpp
|
||||
pathut_LDADD = ../librecoll.la
|
||||
|
||||
mimetype_SOURCES = trmimetype.cpp
|
||||
mimetype_LDADD = ../librecoll.la
|
||||
|
||||
utf8iter_SOURCES = trutf8iter.cpp
|
||||
utf8iter_LDADD = ../librecoll.la
|
||||
circache_SOURCES = trcircache.cpp
|
||||
circache_LDADD = ../librecoll.la
|
||||
|
||||
fileudi_SOURCES = trfileudi.cpp
|
||||
fileudi_LDADD = ../librecoll.la
|
||||
@@ -58,20 +49,32 @@ fileudi_LDADD = ../librecoll.la
|
||||
fstreewalk_SOURCES = trfstreewalk.cpp
|
||||
fstreewalk_LDADD = ../librecoll.la
|
||||
|
||||
rclconfig_SOURCES = trrclconfig.cpp
|
||||
rclconfig_LDADD = ../librecoll.la
|
||||
|
||||
hldata_SOURCES = trhldata.cpp
|
||||
hldata_LDADD = ../librecoll.la
|
||||
|
||||
unac_SOURCES = trunac.cpp
|
||||
unac_LDADD = ../librecoll.la
|
||||
|
||||
mbox_SOURCES = trmbox.cpp
|
||||
mbox_LDADD = ../librecoll.la
|
||||
|
||||
circache_SOURCES = trcircache.cpp
|
||||
circache_LDADD = ../librecoll.la
|
||||
mimetype_SOURCES = trmimetype.cpp
|
||||
mimetype_LDADD = ../librecoll.la
|
||||
|
||||
pathut_SOURCES = trpathut.cpp
|
||||
pathut_LDADD = ../librecoll.la
|
||||
|
||||
rclconfig_SOURCES = trrclconfig.cpp
|
||||
rclconfig_LDADD = ../librecoll.la
|
||||
|
||||
textsplit_SOURCES = trtextsplit.cpp
|
||||
textsplit_LDADD = ../librecoll.la
|
||||
|
||||
unac_SOURCES = trunac.cpp
|
||||
unac_LDADD = ../librecoll.la
|
||||
|
||||
utf8iter_SOURCES = trutf8iter.cpp
|
||||
utf8iter_LDADD = ../librecoll.la
|
||||
|
||||
wipedir_SOURCES = trwipedir.cpp
|
||||
wipedir_LDADD = ../librecoll.la
|
||||
|
||||
x11mon_SOURCES = trx11mon.cpp
|
||||
x11mon_LDADD = ../utils/x11mon.o ../librecoll.la -lX11
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Copyright (C) 2006-2020 J.F.Dockes
|
||||
*
|
||||
* License: GPL 2.1
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "x11mon.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
for (;;) {
|
||||
if (!x11IsAlive()) {
|
||||
fprintf(stderr, "x11IsAlive failed\n");
|
||||
} else {
|
||||
fprintf(stderr, "x11IsAlive Ok\n");
|
||||
}
|
||||
sleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user