Scott Shambarger's Red Hat 8 rpmbuild fixes

This commit is contained in:
albert 2003-03-30 20:09:23 +00:00
parent 89ccfbf4f8
commit 38f224530b
3 changed files with 4 additions and 3 deletions

View File

@ -44,4 +44,5 @@ rm -rf $RPM_BUILD_ROOT
%attr(555,root,root) /usr/bin/*
%attr(0644,root,root) /usr/share/man/man1/*
%attr(0644,root,root) /usr/share/man/man5/*
%attr(0644,root,root) /usr/share/man/man8/*

View File

@ -33,8 +33,8 @@ ps/stacktrace.o: ps/stacktrace.c
$(bin)ps: ps/ps
install --mode a=rx --strip $< $@
$(install) --mode a=rx --strip $< $@
$(man1)ps.1 : ps/ps.1
install --mode a=r $< $@
$(install) --mode a=r $< $@
-rm -f $(DESTDIR)/var/catman/cat1/ps.1.gz $(DESTDIR)/var/man/cat1/ps.1.gz

2
top.c
View File

@ -3237,8 +3237,8 @@ int main (int dont_care_argc, char **argv)
if (chin(0, &c, 1) <= 0) {
fcntl(STDIN_FILENO, F_SETFL, file_flags);
select(1, &fs, NULL, NULL, &tv);
fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK|file_flags);
}
fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK|file_flags);
if (chin(0, &c, 1) > 0) {
fcntl(STDIN_FILENO, F_SETFL, file_flags);
do_key((unsigned)c);